import java.util.Scanner;

/**
 * @Author liangzai
 * @Description:
 */
public class Test {
    //简写单词
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str = scanner.nextLine();
        StringBuilder stringBuilder = new StringBuilder();
        for (int i = 0; i < str.length(); i++) {
            if(i==0){
                stringBuilder.append(str.toUpperCase().charAt(i));
            }
            if(str.charAt(i)==' '){
                stringBuilder.append(str.toUpperCase().charAt(i+1));
            }
        }
        System.out.println(stringBuilder.toString());
    }
}
